#ifndef __SOCKET_IPC_H__
#define __SOCKET_IPC_H__
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <pthread.h>
#include <sys/epoll.h>
#include <poll.h>
//bitmap
enum {
    MODBUS_NONE = 0,
    MODBUS_READ = 0x1,
    MODBUS_WRITE = 0x2,
    MODBUS_UPDATE = 0x4,
    MODBUS_END
};

typedef struct {
    int type;
    int addr;
    int value;
}modbus_common;



#endif